<?php
interface person{
    public function trait();
}

class man implements person{
    public function trait()
    {
        echo '吃苦耐劳';
    }
}

class woman implements person{
    public function trait()
    {
        echo '芳华绝代';
    }
}

$man = new man();
$man->trait();
$woman = new woman();
$woman->trait();